/**
 * 
 */
package com.door.erp.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 门套
 * 
 * @author xiaolongwei@gmail.com
 * 
 * 
 */
@Entity
@Table(name = "doorFrame", catalog = "door")
public class DoorFrame implements Serializable{
	/**
	 * 高度
	 */
	private float height;
	/**
	 * 宽度
	 */
	private float width;
	/**
	 * 厚度
	 */
	private float thickness;

	private long id;

	private int amount;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public float getHeight() {
		return height;
	}

	public void setHeight(float height) {
		this.height = height;
	}

	public float getWidth() {
		return width;
	}

	public void setWidth(float width) {
		this.width = width;
	}

	public float getThickness() {
		return thickness;
	}

	public void setThickness(float thickness) {
		this.thickness = thickness;
	}

	public int getAmount() {
		return amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	// /**
	// * 门洞转门扇
	// * 尺寸规格：
	// 门扇尺寸=门扇高×门扇宽=（门洞高-40）×（门洞宽-70）
	// * @param width
	// * @param height
	// * @param thickness
	// * @return
	// */
	// public DoorFrame getInstance(float width,float height,float thickness){
	// DoorFrame dlf = new DoorFrame();
	// dlf.setHeight(height-40f);
	// dlf.setThickness(thickness);
	// dlf.setWidth(width-70f);
	// return dlf;
	// }
}
